package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.util.Date;

public class BaseUser implements Serializable {
    private Integer id;

    private String areaid;

    private Date createtime;

    private String cssstyle;

    private String email;

    private String mobile;

    private Date modifytime;

    private String orgid;

    private String password;

    private String realname;

    private Integer state;

    private String username;

    private Integer flag;

    private String cityid;

    private String cityname;

    private String countyid;

    private String countyname;

    private String agentids;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public BaseUser withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAreaid() {
        return areaid;
    }

    public BaseUser withAreaid(String areaid) {
        this.setAreaid(areaid);
        return this;
    }

    public void setAreaid(String areaid) {
        this.areaid = areaid == null ? null : areaid.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public BaseUser withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCssstyle() {
        return cssstyle;
    }

    public BaseUser withCssstyle(String cssstyle) {
        this.setCssstyle(cssstyle);
        return this;
    }

    public void setCssstyle(String cssstyle) {
        this.cssstyle = cssstyle == null ? null : cssstyle.trim();
    }

    public String getEmail() {
        return email;
    }

    public BaseUser withEmail(String email) {
        this.setEmail(email);
        return this;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public BaseUser withMobile(String mobile) {
        this.setMobile(mobile);
        return this;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Date getModifytime() {
        return modifytime;
    }

    public BaseUser withModifytime(Date modifytime) {
        this.setModifytime(modifytime);
        return this;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public String getOrgid() {
        return orgid;
    }

    public BaseUser withOrgid(String orgid) {
        this.setOrgid(orgid);
        return this;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid == null ? null : orgid.trim();
    }

    public String getPassword() {
        return password;
    }

    public BaseUser withPassword(String password) {
        this.setPassword(password);
        return this;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRealname() {
        return realname;
    }

    public BaseUser withRealname(String realname) {
        this.setRealname(realname);
        return this;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public Integer getState() {
        return state;
    }

    public BaseUser withState(Integer state) {
        this.setState(state);
        return this;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getUsername() {
        return username;
    }

    public BaseUser withUsername(String username) {
        this.setUsername(username);
        return this;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Integer getFlag() {
        return flag;
    }

    public BaseUser withFlag(Integer flag) {
        this.setFlag(flag);
        return this;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getCityid() {
        return cityid;
    }

    public BaseUser withCityid(String cityid) {
        this.setCityid(cityid);
        return this;
    }

    public void setCityid(String cityid) {
        this.cityid = cityid == null ? null : cityid.trim();
    }

    public String getCityname() {
        return cityname;
    }

    public BaseUser withCityname(String cityname) {
        this.setCityname(cityname);
        return this;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname == null ? null : cityname.trim();
    }

    public String getCountyid() {
        return countyid;
    }

    public BaseUser withCountyid(String countyid) {
        this.setCountyid(countyid);
        return this;
    }

    public void setCountyid(String countyid) {
        this.countyid = countyid == null ? null : countyid.trim();
    }

    public String getCountyname() {
        return countyname;
    }

    public BaseUser withCountyname(String countyname) {
        this.setCountyname(countyname);
        return this;
    }

    public void setCountyname(String countyname) {
        this.countyname = countyname == null ? null : countyname.trim();
    }

    public String getAgentids() {
        return agentids;
    }

    public BaseUser withAgentids(String agentids) {
        this.setAgentids(agentids);
        return this;
    }

    public void setAgentids(String agentids) {
        this.agentids = agentids == null ? null : agentids.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", areaid=").append(areaid);
        sb.append(", createtime=").append(createtime);
        sb.append(", cssstyle=").append(cssstyle);
        sb.append(", email=").append(email);
        sb.append(", mobile=").append(mobile);
        sb.append(", modifytime=").append(modifytime);
        sb.append(", orgid=").append(orgid);
        sb.append(", password=").append(password);
        sb.append(", realname=").append(realname);
        sb.append(", state=").append(state);
        sb.append(", username=").append(username);
        sb.append(", flag=").append(flag);
        sb.append(", cityid=").append(cityid);
        sb.append(", cityname=").append(cityname);
        sb.append(", countyid=").append(countyid);
        sb.append(", countyname=").append(countyname);
        sb.append(", agentids=").append(agentids);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}